package com.itheima.stock.service;

import com.itheima.stock.ex.CustomerException;
import com.itheima.stock.pojo.SysUser;
import com.itheima.stock.vo.req.LoginReqVo;
import com.itheima.stock.vo.req.UserPageReqVo;
import com.itheima.stock.vo.resp.*;

/**
* @author 10937
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2022-12-05 20:59:54
*/
public interface SysUserService {
    /**
     * 用户登录功能实现
     * @param vo
     * @return
     */
    R<LoginRespVo> login(LoginReqVo vo) throws CustomerException;

    /**
     * 生成验证码功能接口
     * @return
     */
    R<CaptchaRespVo> generateCaptcha();

    /**
     * 用户分页查询
     * @param reqVo
     * @return
     */
    R<PageResult<UserPageRespVo>> findPageVo(UserPageReqVo reqVo) throws CustomerException;
}
